package com.news.service;




import com.news.model.News;

import java.util.List;

public interface NewsService {
    //新增
    void insertNews(News news);

    //修改
    void uqdateNews(News news);

    // 插件分页查询
    List<News> queryAll(int pageNum, int pageSize);
    //查询全部
    List<News> queryNews(int pageSize, int startRecord);
    // 类别查询
    List<News> queryCategory(String cateGoryID);
    //查询一个
    News queryOne(String id);
    //查询总记录数
    int queryCount();
    List<News> queryOneNews(String name);
    //分页查询
    List<News> queryOneNews1(String name,int pageSize, int startRecord);
    List<News> queryCategory1(String cateGoryID,int pageSize, int startRecord);
}
